﻿<UserControl x:Class="Noboru.Demo.ToolStripButtonControlPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:c="clr-namespace:Noboru.Windows.Controls;assembly=Noboru.Windows.Controls" d:DesignHeight="299" d:DesignWidth="162">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Border Width="Auto" Height="26" BorderThickness="1,1,1,1" BorderBrush="#FF000000" VerticalAlignment="Center" Padding="0,0,0,0" Margin="0,0,0,10">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF000000" Offset="1"/>
                    <GradientStop Color="#FFB3AFAF" Offset="0.003"/>
                </LinearGradientBrush>
            </Border.Background>
            <TextBlock Text="Tool Strip Button Control" Foreground="White"  VerticalAlignment="Center" HorizontalAlignment="Left" Margin="6,0,0,0"/>
        </Border>
        <Border BorderBrush="Gray" BorderThickness="1" Height="150" Grid.Row="1" Width="Auto" CornerRadius="5" Margin="10,0,10,0" Padding="8">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFBEC0C2" Offset="0.994"/>
                    <GradientStop Color="#FFE5E5E6" Offset="0.006"/>
                </LinearGradientBrush>
            </Border.Background>
        </Border>
        <StackPanel Orientation="Horizontal" Grid.Row="2" Margin="18,18,4,81" Height="23">
            <c:ToolStripButton x:Name="ToolStripButton" CheckOnClick="True" GroupName="TextJustification" CornerRadius="2, 0, 0, 2" ImageSource="/Noboru.Demo;component/images/Left.png" />
            <c:ToolStripButton x:Name="ToolStripButton1" CheckOnClick="True" GroupName="TextJustification" ImageSource="/Noboru.Demo;component/images/Center.png" />
            <c:ToolStripButton x:Name="ToolStripButton2" CheckOnClick="True" GroupName="TextJustification" ImageSource="/Noboru.Demo;component/images/Right.png" />
            <c:ToolStripButton x:Name="ToolStripButton3" CheckOnClick="True" GroupName="TextJustification" CornerRadius="0, 2, 2, 0" BorderThickness="1, 1, 1, 1" ImageSource="/Noboru.Demo;component/images/Align.png" />
        </StackPanel>
    </Grid>

</UserControl>
